package com.foreknow.elm.service;

import com.foreknow.elm.po.User;

public interface UserService {
    /**
     *根据用户编号与密码查询用户信息
     * @param userId
     * @param password
     * @return
     * @throws Exception
     */
    public User getUserByIdByPass(String userId, String password);

    /**
     *根据用户编号查询用户表返回的行数
     * @param userId
     * @return
     * @throws Exception
     */
    public User getUserById(String userId);

    /**
     *向用户表中添加一条记录
     * @param user
     * @return
     * @throws Exception
     */
    public int saveUser(User user);
}
